Piwik\Access C

Total Complexity 111
Dependencies 19
Dependents 39
Total lines 610
Lines of code 315
Logical lines of code 188
Comment lines 250
Methods 35
Properties 7

Methods 35

Method Rating Maintainability Complexity Lines of code
reloadAccess()
B
43 20 42
loadSitesIfNeeded()
A
48 13 32
throwNoAccessException()
S
61 7 11
doAsSuperUser()
S
54 5 24
getRoleForSite()
S
62 5 12
checkUserHasCapability()
S
60 4 13
checkUserHasViewAccess()
S
61 4 12
checkUserHasWriteAccess()
S
61 4 12
checkUserHasAdminAccess()
S
61 4 12
getCapabilitiesForSite()
S
62 4 12
__construct()
S
63 3 11
getIdSites()
S
64 3 10
checkUserHasSomeViewAccess()
S
65 3 9
checkUserIsNotAnonymous()
S
67 3 8
isUserHasSomeWriteAccess()
S
69 2 7
checkUserHasSomeWriteAccess()
S
72 2 5
isUserHasSomeAdminAccess()
S
69 2 7
checkUserHasSuperUserAccess()
S
72 2 5
getSitesIdWithCapability()
S
71 2 6
setSuperUserAccess()
S
68 2 8
makeSureLoginNameIsSet()
S
74 2 5
checkUserHasSomeAdminAccess()
S
72 2 5
getInstance()
S
80 1 3
getSitesIdWithWriteAccess()
S
76 1 4
getSitesIdWithViewAccess()
S
76 1 4
getSitesIdWithAdminAccess()
S
75 1 4
getSitesIdWithAtLeastWriteAccess()
S
74 1 4
getSitesIdWithAtLeastViewAccess()
S
74 1 4
getTokenAuth()
S
82 1 3
getLogin()
S
82 1 3
hasSuperUserAccess()
S
82 1 3
getSqlAccessSite()
S
71 1 5
getRawSitesWithSomeViewAccess()
S
74 1 4
resetSites()
S
77 1 3
isUserLoggedIn()
S
80 1 3